package com.deltachi.lateplates;


import java.util.Date;

public class LatePlateData {
	private Key key;
    private String name;
    private String userName;
    private String day;
    private int type;
    private String comments;
    private int value;
    
    public LatePlateData(String userName, String name, String day, int type, String comments) {
    	this.userName = userName;
    	this.name = name;
    	this.day = day;
    	this.type = type;
    	this.comments = comments;
    	
    	//Set value based on day
    	if(day.equalsIgnoreCase("Monday")) {
    		this.value = 1;
    	}
    	if(day.equalsIgnoreCase("Tuesday")) {
    		this.value = 2;
    	}
    	if(day.equalsIgnoreCase("Wednesday")) {
    		this.value = 3;
    	}
    	if(day.equalsIgnoreCase("Thursday")) {
    		this.value = 4;
    	}
    	if(day.equalsIgnoreCase("Friday")) {
    		this.value = 5;
    	}
    }

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDay() {
		return day;
	}

	public void setDay(String day) {
		this.day = day;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}

	public int getValue() {
		return value;
	}

	public Key getKey() {
		return key;
	}

	public void setKey(Key key) {
		this.key = key;
	}
	
}
